home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
rbbs_pc
/
mapl0831.zip
/
MPL-BAT.ZIP
/
CTXTZIP.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-08-13
|
2KB
|
68 lines
REM %1 = prefix/file converting, %2 = node, %3 = actual file path
echo off
md i:\%2
ctty gate1
copy %3%1.txt I:\%2
DEL %3%1.txt
pkzip -a -ex %3%1 i:\%2\*.*
REM pkunzip -t %3%1.zip
IF ERRORLEVEL 1 GOTO badupload
:VIRUS
proecho %node% ~Your file will now be examined for Viruses~
proecho %node% Please wait a moment while we do this.....~
scan /nomem /A i:\%2
IF ERRORLEVEL 1 goto VirusCk
seterror 0
goto Good
:VIRUSCK
copy %3%1.ZIP c:\c3\virus
del %3%1.zip
proecho %node% ~The file you uploaded contains a virus.~
proecho %node% Please carefully check you files before uploading!~~
seterror 1
goto exit
:GOOD
proecho %node% ~ No Viruses have been found!~
REM The ~ represents a line feed. The below is the suggested amounts.
proecho %node% ~ Setting date of %1.ZIP to the date of most recent date of~
proecho %node% the archive........~
REM recom -o -l c:\rbbs\uploads\logfile -s c:\rbbs\sys\comment.txt %3%1.zip
proecho %node% ~ Now lets see how old the files in %1.ZIP are.......~~
copy %3%1.ZIP i:\%2
ZIPDS i:\%2\*.zip
testage i:\%2 1988 c:\c3\hold
if exist c:\c3\hold\%1.zip goto baddates
if not exist c:\c3\hold\%1.zip goto thanks
:baddates
proecho %node% At least one of the programs you uploaded is~
proecho %node% more than 2 years old. I will move any old~
proecho %node% programs offline for evaluation by the sysop.~
proecho %node% ~Please DO NOT upload items over 2 years old.~~
copy %3%1.zip c:\c3\hold
del %3%1.ZIP
goto exit
:badupload
proecho %node% Looks like one or more uploads are no good...~
proecho %node% I will move all file(s) you just uploaded~
proecho %node% offline for manual evaluation by the sysop.~
copy %3%1.zip c:\c3\hold
del %3%1.zip
goto exit
:thanks
proecho %node% ~Upload file dates are fine. ~~
:EXIT
kdy i:\%2
SETERROR 0
echo on
ctty con
c:
cd\c3